<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">

    function Person() {
    }
    Person.prototype = {
        // constructor: Person,
        name: '',
        age: '',
        gender: '',
        job: ['UI', 'web', 'engineer'],
        sayName: function () {
            console.log(this.name)
        }
    }
    var person1 = new Person()
    var person2 = new Person()
    person1.job.push('会计')
    console.log(person2) // ["UI", "web", "engineer", "会计"]

</script>

</body>
</html>
